package server;


import java.io.IOException;
import java.net.Socket;

import javax.net.ssl.SSLServerSocket;
import javax.net.ssl.SSLServerSocketFactory;

public class Server {

	public static void main(String[] args) throws IOException {
		SSLServerSocket ss = (SSLServerSocket) SSLServerSocketFactory.getDefault().createServerSocket(9988);
		ss.setEnabledCipherSuites(ss.getSupportedCipherSuites());
		while (!ss.isClosed()) {
			Socket s = ss.accept();
			new NewConnectionHandler(ss, s).start();
		}
		ss.close();
	}

}
